package com.fxp.project.jiuselu.web.models.goods.service.impl;

import com.fxp.project.jiuselu.web.models.goods.entity.JslGoodsCategory;
import com.fxp.project.jiuselu.web.models.goods.mapper.JslGoodsCategoryMapper;
import com.fxp.project.jiuselu.web.models.goods.service.IJslGoodsCategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品分类表 服务实现类
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-01
 */
@Service
public class JslGoodsCategoryServiceImpl extends ServiceImpl<JslGoodsCategoryMapper, JslGoodsCategory> implements IJslGoodsCategoryService {

    @Autowired
    JslGoodsCategoryMapper jslGoodsCategoryMapper;

    /**
     * selectJslGoodsCategoryListByParentId: 通过当前商品分类的父Id获取列表信息<br/>
     *
     * @param parentId
     * @return
     * @author Kai.Wang
     * @date 2021/11/1 17:01
     */
    @Override
    public List<JslGoodsCategory> selectJslGoodsCategoryListByParentId(Long parentId) {
        return jslGoodsCategoryMapper.selectJslGoodsCategoryListByParentId(parentId);
    }
}
